package com.student.system.wapper;

import com.student.system.entity.Studentregister;
import com.student.system.utils.MD5Utils;

import javax.servlet.http.HttpServletRequest;

public class StudentRegisterWrapper {
    public static Studentregister registerWrapper(HttpServletRequest req){
        Studentregister studentregister =new Studentregister();
        studentregister.setUserName(req.getParameter("userName"));
        studentregister.setPhone(req.getParameter("phone"));
//        MD5Utils.md5plus
        studentregister.setPassword((req.getParameter("password")));
        return studentregister;
    }
}
